package com.mysky.client.mvp.audioplayer.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.mysky.client.mvp.audioplayer.event.MDErrorEvent.MDErrorEventHandler;

public class MDErrorEvent extends
		GwtEvent<MDErrorEventHandler> {

	public static final Type<MDErrorEventHandler> TYPE = new Type<MDErrorEventHandler>();

	public MDErrorEvent() {
		super();
	}

	public interface MDErrorEventHandler extends EventHandler {
		void handleEvent(MDErrorEvent event);
	}

	@Override
	public Type<MDErrorEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(MDErrorEventHandler handler) {
		handler.handleEvent(this);
	}
}